//
//  NewAddressViewController.m
//  xpkc
//
//  Created by TopSage on 15/11/26.
//  Copyright (c) 2015年 TopSage. All rights reserved.
//

#import "NewAddressViewController.h"
#import "DeliveryAddressView.h"

@interface NewAddressViewController ()

@end

@implementation NewAddressViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    if (IsIOS7) {
        [self setEdgesForExtendedLayout:UIRectEdgeNone];
    }
    if (self.deliverymodel == nil) {
        
        self.title = @"新添收货地址";
        
    }else{
        
        self.title = @"修改收货地址";
        
    }
    
    
    
    DeliveryAddressView *vc = [[DeliveryAddressView alloc]initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, SCREEN_HEIGHT)];
    vc.viewController = self;
    [vc setDeliveryModel:self.deliverymodel];
    [self.view addSubview:vc];
    
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}



@end
